package org.snacktest.annotation.use;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.snackframework.annotation.Controller;
import org.snackframework.annotation.UrlMapping;
import org.snackframework.core.ModelView;

@Controller("localController")
public class ControllerTest
{
	@UrlMapping("/hello/welcome.htm")
	public ModelView welcome(String country,HttpServletRequest req,HttpServletResponse resp)
	{
		ModelView view=new ModelView("/template/welcome");
//		view.getModel().put("country", "China");
		view.getModel().put("country", country);
		return view;
	}
}
